home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 92 / DPPCZ0800.7z / DPPCZ0800.ISO / Patches / Star Trek - Armada / Armada_patch_1_1.exe / LDL / language.ldl next >
Text File  |  2000-04-03  |  10KB  |  363 lines

  1. ################################################################
  2. #
  3. #    this is the language switching ldl file, which maps OS language
  4. #    to the proper ldl file to be used by the installer.
  5. #
  6. #    the following languages are recognized (taken directly from
  7. #    microsoft's winnt.h):
  8. #
  9. #    string to use        corresponding constant in winnt.h        other comments
  10. #--------------------------------------------------------------------------------
  11. #
  12. #    default                    -                                    includes all OS languages - in other words, 
  13. #                                                                this specifies the default ldl file to use if
  14. #                                                                no other language match can be made
  15. #    
  16. #
  17. #    English                    LANG_ENGLISH                        includes all english systems
  18. #    English_US                SUBLANG_ENGLISH_US
  19. #    English_Canadian        SUBLANG_ENGLISH_CAN
  20. #    English_UK                SUBLANG_ENGLISH_UK
  21. #    
  22. #    English_Austrailan        SUBLANG_ENGLISH_AUS
  23. #    English_NZ                SUBLANG_ENGLISH_NZ
  24. #    English_Irish            SUBLANG_ENGLISH_EIRE
  25. #    English_SouthAfrica        SUBLANG_ENGLISH_SOUTH_AFRICA
  26. #    
  27. #    English_Jamaica            SUBLANG_ENGLISH_JAMAICA
  28. #    English_Caribbean        SUBLANG_ENGLISH_CARIBBEAN
  29. #    English_Belize            SUBLANG_ENGLISH_BELIZE
  30. #    English_Trinidad        SUBLANG_ENGLISH_TRINIDAD
  31. #
  32. #
  33. #    French                    LANG_FRENCH                            includes all french systems
  34. #    French_                    SUBLANG_FRENCH                        doesn't include other sublanguages of french
  35. #    French_Belgian            SUBLANG_FRENCH_BELGIAN
  36. #    French_Canadian            SUBLANG_FRENCH_CANADIAN
  37. #    
  38. #    French_Swiss            SUBLANG_FRENCH_SWISS
  39. #    French_Luxembourg        SUBLANG_FRENCH_LUXEMBOURG
  40. #
  41. #
  42. #    German                    LANG_GERMAN                            includes all german systems
  43. #    German_                    SUBLANG_GERMAN                        doesn't include other sublanguages of german
  44. #    German_Swiss            SUBLANG_GERMAN_SWISS
  45. #    German_Austrian            SUBLANG_GERMAN_AUSTRIAN
  46. #
  47. #    German_Luxembourg        SUBLANG_GERMAN_LUXEMBOURG
  48. #    German_Liechtenstein    SUBLANG_GERMAN_LIECHTENSTEIN
  49. #
  50. #
  51. #    Spanish                    LANG_SPANISH                        includes all spanish systems
  52. #    Spanish_                SUBLANG_SPANISH                        doesn't include other sublanguages of spanish
  53. #    Spanish_Mexican            SUBLANG_SPANISH_MEXICAN
  54. #    Spanish_Modern            SUBLANG_SPANISH_MODERN
  55. #    
  56. #    Spanish_Guatemala        SUBLANG_SPANISH_GUATEMALA
  57. #    Spanish_CostaRica        SUBLANG_SPANISH_COSTA_RICA
  58. #    Spanish_Panama            SUBLANG_SPANISH_PANAMA
  59. #    Spanish_DominicanRepublic    SUBLANG_SPANISH_DOMINICAN_REPUBLIC
  60. #    
  61. #    Spanish_Venezuela        SUBLANG_SPANISH_VENEZUELA
  62. #    Spanish_Colombia        SUBLANG_SPANISH_COLOMBIA
  63. #    Spanish_Peru            SUBLANG_SPANISH_PERU
  64. #    Spanish_Argentina        SUBLANG_SPANISH_ARGENTINA
  65. #    
  66. #    Spanish_Ecuador            SUBLANG_SPANISH_ECUADOR
  67. #    Spanish_Chile            SUBLANG_SPANISH_CHILE
  68. #    Spanish_Uruguay            SUBLANG_SPANISH_URUGUAY
  69. #    Spanish_Paraguay        SUBLANG_SPANISH_PARAGUAY
  70. #    
  71. #    Spanish_Bolivia            SUBLANG_SPANISH_BOLIVIA
  72. #    Spanish_ElSalvador        SUBLANG_SPANISH_EL_SALVADOR
  73. #    Spanish_Honduras        SUBLANG_SPANISH_HONDURAS
  74. #    Spanish_Nicaragua        SUBLANG_SPANISH_NICARAGUA
  75. #    
  76. #    Spanish_PuertoRico        SUBLANG_SPANISH_PUERTO_RICO
  77. #    
  78. #    
  79. #    Chinese                    LANG_CHINESE                        includes all chinese systems
  80. #    Chinese_Traditional        SUBLANG_CHINESE_TRADITIONAL
  81. #    Chinese_Simplified        SUBLANG_CHINESE_SIMPLIFIED
  82. #    Chinese_HongKong        SUBLANG_CHINESE_HONGKONG
  83. #    
  84. #    Chinese_Singapore        SUBLANG_CHINESE_SINGAPORE
  85. #
  86. #    
  87. #    Japanese                LANG_JAPANESE
  88. #    
  89. #
  90. #    Italian                    LANG_ITALIAN                        includes all italian systems
  91. #    Italian_                SUBLANG_ITALIAN                        doesn't include other sublanguages of italian
  92. #    Italian_Swiss            SUBLANG_ITALIAN_SWISS
  93. #
  94. #
  95. #    Portuguese                LANG_PORTUGUESE                        includes all portuguese systems
  96. #    Portuguese_                SUBLANG_PORTUGUESE                    doesn't include other sublanguages of portuguese
  97. #    Portuguese_Brazilian    SUBLANG_PORTUGUESE_BRAZILIAN
  98. #
  99. #
  100. #    Korean                    LANG_KOREAN                            includes all korean systems
  101. #    Korean_                    SUBLANG_KOREAN                        doesn't include other sublanguages of korean
  102. #    Korean_Johab            SUBLANG_KOREAN_JOHAB
  103. #
  104. #
  105. #    Thai                    LANG_THAI
  106. #
  107. #
  108. #    Vietnamese                LANG_VIETNAMESE
  109. #    
  110. #    
  111. #    Hebrew                    LANG_HEBREW
  112. #
  113. #    
  114. #    Russian                    LANG_RUSSIAN
  115. #    
  116. #    
  117. #    Greek                    LANG_GREEK
  118. #    
  119. #    
  120. #    Arabic                    LANG_ARABIC                            includes all arabic systems
  121. #    Arabic_SaudiArabia        SUBLANG_ARABIC_SAUDI_ARABIA
  122. #    Arabic_Iraq                SUBLANG_ARABIC_IRAQ
  123. #    Arabic_Egypt            SUBLANG_ARABIC_EGYPT
  124. #    
  125. #    Arabic_Libya            SUBLANG_ARABIC_LIBYA
  126. #    Arabic_Algeria            SUBLANG_ARABIC_ALGERIA
  127. #    Arabic_Morocco            SUBLANG_ARABIC_MOROCCO
  128. #    Arabic_Tunisia            SUBLANG_ARABIC_TUNISIA
  129. #    
  130. #    Arabic_Oman                SUBLANG_ARABIC_OMAN
  131. #    Arabic_Yemen            SUBLANG_ARABIC_YEMEN
  132. #    Arabic_Syria            SUBLANG_ARABIC_SYRIA
  133. #    Arabic_Jordan            SUBLANG_ARABIC_JORDAN
  134. #    
  135. #    Arabic_Lebanon            SUBLANG_ARABIC_LEBANON
  136. #    Arabic_Kuwait            SUBLANG_ARABIC_KUWAIT
  137. #    Arabic_UAE                SUBLANG_ARABIC_UAE
  138. #    Arabic_Bahrain            SUBLANG_ARABIC_BAHRAIN
  139. #    
  140. #    Arabic_Qatar            SUBLANG_ARABIC_QATAR
  141. #    
  142. #    
  143. #    Swedish                    LANG_SWEDISH                        includes all swedish systems
  144. #    Swedish_                SUBLANG_SWEDISH
  145. #    Swedish_Finland            SUBLANG_SWEDISH_FINLAND
  146. #
  147. #
  148. #    Serbian                    LANG_SERBIAN                        includes all serbian systems
  149. #    Serbian_Latin            SUBLANG_SERBIAN_LATIN
  150. #    Serbian_Cyrillic        SUBLANG_SERBIAN_CYRILLIC
  151. #        
  152. #        
  153. #    Norwegian                LANG_NORWEGIAN                        includes all norwegian systems
  154. #    Norwegian_Bokmal        SUBLANG_NORWEGIAN_BOKMAL
  155. #    Norwegian_Nynorsk        SUBLANG_NORWEGIAN_NYNORSK
  156. #        
  157. #        
  158. #    Dutch                    LANG_DUTCH                            includes all dutch systems
  159. #    Dutch_                    SUBLANG_DUTCH                        doesn't include other sublanguages of dutch
  160. #    Dutch_Belgian            SUBLANG_DUTCH_BELGIAN
  161. #        
  162. #
  163. #    Afrikaans                LANG_AFRIKAANS                        includes all african languages (?)
  164. #
  165. #
  166. #    Albanian                LANG_ALBANIAN
  167. #
  168. #
  169. #    Basque                    LANG_BASQUE
  170. #    
  171. #
  172. #    Belarusian                LANG_BELARUSIAN
  173. #
  174. #
  175. #    Bulgarian                LANG_BULGARIAN
  176. #    
  177. #    
  178. #    Catalan                    LANG_CATALAN
  179. #    
  180. #    
  181. #    Croatian                LANG_CROATIAN
  182. #    
  183. #    
  184. #    Czech                    LANG_CZECH
  185. #
  186. #
  187. #    Danish                    LANG_DANISH
  188. #
  189. #
  190. #    Estonian                LANG_ESTONIAN
  191. #
  192. #
  193. #    Faeroese                LANG_FAEROESE
  194. #
  195. #
  196. #    Farsi                    LANG_FARSI
  197. #
  198. #
  199. #    Finnish                    LANG_FINNISH
  200. #
  201. #
  202. #    Hungarian                LANG_HUNGARIAN
  203. #
  204. #
  205. #    Icelandic                LANG_ICELANDIC
  206. #
  207. #
  208. #    Indonesian                LANG_INDONESIAN
  209. #
  210. #
  211. #    Latvian                    LANG_LATVIAN
  212. #
  213. #
  214. #    Lithuanian                LANG_LITHUANIAN
  215. #
  216. #
  217. #    Polish                    LANG_POLISH
  218. #
  219. #
  220. #    Romanian                LANG_ROMANIAN
  221. #
  222. #
  223. #    Serbian                    LANG_SERBIAN
  224. #
  225. #
  226. #    Slovak                    LANG_SLOVAK
  227. #
  228. #
  229. #    Slovenian                LANG_SLOVENIAN
  230. #
  231. #
  232. #    Turkish                    LANG_TURKISH
  233. #
  234. #
  235. #    Ukrainian                LANG_UKRAINIAN
  236. #
  237. #----------------------------------------------------------------
  238. #
  239. #    as you can see, there are 3 classes of language specifier,
  240. #    each more specific than the last:
  241. #
  242. #        default            includes all languages
  243. #        language        includes all sublanguages of that language
  244. #        sublanguage        includes only that sublanguage
  245. #
  246. #    a sublanguage name is always of the form 'lang_sublang'.  sublang is sometimes zero length, but the
  247. #    '_' character is always there in a sublanguge.  presence of the '_' character means the name is treated as a
  248. #    sublanguage.
  249. #
  250. #    these language names are used in the following way:
  251. #
  252. #    there is a 'switch' block whose child blocks represent ldl files and languages for which they are used.  Example:
  253. #
  254. #    
  255. #    switch
  256. #    {
  257. #        English
  258. #        {
  259. #            string language_0 "default"
  260. #            string file "string_e.ldl"
  261. #        }            
  262. #
  263. #        German
  264. #        {
  265. #            string language_0 "German"
  266. #            string file "string_g.ldl"
  267. #        }
  268. #
  269. #        French
  270. #        {
  271. #            string language_0 "French"
  272. #            string language_1 "Chinese"
  273. #            string language_2 "Arabic_Yemen"
  274. #            string file "string_f.ldl"
  275. #        }
  276. #
  277. #        US
  278. #        {
  279. #            string language_0 "English_US"
  280. #            string file "string_u.ldl"
  281. #        }
  282. #    }
  283. #
  284. #    in this example, string_e.ldl is the default ldl file to use.  string_u.ldl is used only on english US systems.
  285. #    string_g.ldl is used on german systems.  string_f.ldl is used on french, chinese, and arabic yemen systems.  Other
  286. #    arabic systems would use string_e.ldl, since "Arabic" is not specified anywhere.  note that this is a bizarre 
  287. #    example constructed only for the explanation's sake.
  288. #
  289. #    most products' switch blocks will look quite simple:
  290. #
  291. #    switch.string_e 
  292. #    { 
  293. #        string language_0 "default"
  294. #        string file "string_e.ldl"
  295. #    }
  296. #
  297. #    or maybe:
  298. #
  299. #    switch
  300. #    {
  301. #        Default
  302. #        {
  303. #            language_0 "default"
  304. #            string file "string_e.ldl"
  305. #        }
  306. #        
  307. #        string_g
  308. #        {
  309. #            language_0 "German"
  310. #            string file "string_g.ldl"
  311. #        }
  312. #        
  313. #        string_f
  314. #        {
  315. #            language_0 "French"
  316. #            string file "string_f.ldl"
  317. #        }
  318. #
  319. #        string_s
  320. #        {
  321. #            language_0 "Spanish"
  322. #            string file "string_s.ldl"
  323. #        }
  324. #    }
  325. #
  326. #
  327. #    for a multilanguage CD designed for english, german, french, and spanish systems.
  328. #    note that if the string_e block had been:
  329. #
  330. #        English
  331. #        {
  332. #            string language_0 "English"
  333. #            string file "string_e.ldl"
  334. #        }
  335. #
  336. #    you would have had no default ldl file specified.  Always supply a default ldl file.  If the above installer were to be run on a
  337. #    chinese system, setup would not launch.  Activision company policy has been not to lockout users based on the language of their windows OS.
  338. #
  339. #    other things to note:  language names are not case sensitive.  Attributes of the ldl file block should be named language_0, language_1, etc...
  340. #    Setup stops looking for languages at the first such attribute in the series that it can't find.  The child blocks of 'switch' can be named
  341. #    anything which is a valid base filename.  Each child block must have a 'file' attribute.  This is the path to the ldl file to be used,
  342. #    default directory is SRCDIR:/, if no drive is specified.
  343. #
  344. #    the ldl files referenced by the switch block should contain all the information setup needs to change its behavior based on language.
  345. #    Usually this includes text context, files to copy, formatting and positioning, voice-over .wav files, and locations of secondary 
  346. #    resources such as help and web sites.
  347. #
  348. #
  349.  
  350. switch
  351. {
  352.     English
  353.     {
  354.         string file "string_e.ldl"
  355.         string language_0 "default"
  356.     }
  357.  
  358.     German
  359.     {
  360.         string file "string_g.ldl"
  361.         string language_0 "german"
  362.     }
  363. }